#!/bin/bash

echo "🚀 启动数据库系统..."
cd /Users/zhangpeng/Desktop/150/storage_system_cpp

if [ ! -f "simple_persistence_test" ]; then
    echo "编译数据库程序..."
    g++ -std=c++17 -o simple_persistence_test simple_persistence_test.cpp
fi

echo "启动数据库系统..."
./simple_persistence_test
